//
//  BoZeDetailCell.swift
//  BoZeCalendar
//
//  Created by 李东 on 2024/4/12.
//

import UIKit

class BoZeDetailCell: UITableViewCell {

    @IBOutlet weak var dateTimeLabel: UILabel!
    @IBOutlet weak var costLabel: UILabel!
    
    @IBOutlet weak var priceLabel: UILabel!
    @IBOutlet weak var kmLabel: UILabel!
    
    @IBOutlet weak var addOilLabel: UILabel!
    
    @IBOutlet weak var remainOilLabel: UILabel!
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    var model: BoZeOilModel! {
        didSet {
            dateTimeLabel.text = model.ymd_time
            costLabel.text = model.cost
            priceLabel.text = "单价(元/L)：" +  model.price
            addOilLabel.text = "加油量(L)：\(model.addOil)"
            kmLabel.text = "里程(KM)：\(model.km)"
            remainOilLabel.text = "未加油油量(L)：\(model.remainOil)"
        }
    }
}
